#pragma once

//#include "../ExtDialog.h"
#include <wx/aui/aui.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/slider.h>

#include "../UndefExtension.h"
#include "../IBackgroundWorker.h"

class BasicDialog: public wxDialog, public IBackgroundWorker
{
public:
	BasicDialog(
		UndefExtension* ext,
		wxWindow* parent, 
		wxWindowID id, 
		const wxString & title,
	    const wxPoint & pos = wxDefaultPosition,
	    const wxSize & size = wxDefaultSize,
	    long style = wxDEFAULT_DIALOG_STYLE 
		);
	void CreateControls();
	void OnOk(wxCommandEvent& event);
	//thread
	bool Engine();
	void Result();

	UndefExtension* GetExt();
private:
	wxTextCtrl * dialogText;
	UndefExtension * m_extension;
};